import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';
import p002 from './p002';
interface Iparam extends Event {
	page_no: number;
}
export default async function a002(fd: IFeidaoAiBrowserComponent, a: Iparam) {
	// console.log(JSON.parse(resss));

	const page_no = a.page_no;



	const res = await nodejs<{ res: Array<{}>, ress: number }>('train-plan/zj-000002/s001', {
		filter: {
			id: ''
		},
		page_no
	});
	render(fd, res.res, p001, 'p001', 'inner');
	render(fd, { page_no, total: res.ress }, p002, 'p002', 'inner');
}
